/**
 *
 */
package gemini.basic.dao;

import gemini.basic.dto.SearchDistributorCriteria;
import gemini.basic.dto.SearchDistributorResult;
import gemini.basic.model.Distributor;

import java.util.List;

/**
 *
 */
public interface DistributorDao {
	public Distributor saveOrUpdate(Distributor distributor, boolean flush);

	public Distributor getByCode(String code);

	public List<SearchDistributorResult> findDistributor(
			SearchDistributorCriteria criteria);
	
	public List<Distributor> getAllDistributors();
}
